package com.game.thrones.service.web.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.game.thrones.domain.KbmContent;
import com.game.thrones.domain.webpage.WebBannerDO;
import com.game.thrones.service.BaseServiceImpl;
import com.game.thrones.service.web.WebBannerService;

@Service("webBannerService")
public class WebBannerServiceImpl extends BaseServiceImpl<WebBannerDO, Integer> implements WebBannerService {

	@Override
	public List<WebBannerDO> findListByType(KbmContent kbmContent, Integer type) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("type", type);
		return find(kbmContent, param);
	}

	@Override
	public WebBannerDO findOneByType(KbmContent kbmContent, Integer type) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("type", type);
		return findOne(kbmContent, param);
	}

}
